<template>
  <view>
    <u-tabbar v-model="current" :list="tablist" bg-color="#1f1f1d" active-color="#1FE7E7" :border-top="false"></u-tabbar>
  </view>
</template>

<script>
export default{
  data () {
    return {
      tablist: [
          {
						iconPath: "/static/Home.png",
						selectedIconPath: "/static/homes.png",
						text: '首页',
						customIcon: false,
            pagePath:"/pages/index/index",
					},
					{
            iconPath: "/static/market_icon.png",
            selectedIconPath: "/static/market_active_icon.png",
						text: '市场',
						customIcon: false,
            pagePath: "/pages/entrust/entrust",
					},
					{
						iconPath: "/static/dynamic.png",
						selectedIconPath: "/static/Information.png",
						text: '资讯',
						customIcon: false,
            pagePath: "/pages/dynamic/dynamic",
					},
					{
						iconPath: "/static/mines.png",
						selectedIconPath: "/static/mine.png",
						text: '我的',
						isDot: false,
						customIcon: false,
            pagePath: "/pages/mine/mine",
					},
			],
      nowcurrent:this.current
    }
  },
  props:{
    current:0
  },
  created(){
    let token = uni.getStorageSync("token")
    if(!token) this.tablist.splice(1,1)
  }
}
</script>